package router

import (
	"github.com/gin-gonic/gin"
	jwt "github.com/golangblogs/gojwt"
)

func LoadRouter(r *gin.Engine) {
	r.GET("/ordercall", OrderCall)
	r.POST("/user/login", Login)

	group := r.Group("/order")
	{
		group.Use(jwt.JWTAuth("2209a"))
		group.POST("/planadd", PlanAdd)
		group.POST("/plandel", PlanDel)
		group.POST("/orderadd", OrderAdd)
	}

}
